package com.example.demo.entity.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryPara {
    /**
     * 字段
     */
    private String column;
    /**
     * 字段值 单个
     */
    private Object value;
    /**
     * 字段值 多个
     */
    private Object[] values;
    /**
     * 条件类型 eg: ne lt eq gt in nin let get
     */
    private String type;

    public QueryPara(String column, String type, Object value) {
        this.column = column;
        this.type = type;
        this.value = value;
    }
}
